import os


def file_name():
    """
    将文件加扩展名jpg
    :return:
    """
    path="C:\\Users\\dell.dell-PC\\Desktop/AA"
    for item in os.listdir(path):
        src=os.path.join(path,item);
        dst =os.path.join(path,item+".jpg");
        os.rename(src,dst )

if __name__ == "__main__":
    file_name()

